package pjkanri.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
@Table(name = "issure")
public class Issure implements Serializable {

	private static final long serialVersionUID = 1L;

	@Id
	private Integer issure_id;

	@Column
	private Integer project_id;

	@Column
	private String name;

	@Column
	private String description;

	@Column
	private Integer type_id;

	@Temporal(TemporalType.DATE)
	private Date duedate;

	@Column
	private Integer account_id;

	@Column
	private Integer status;

	/**
	 * 
	 */
	public Issure() {}

	
	/**
	 * @param issure_id
	 * @param project_id
	 * @param name
	 * @param description
	 * @param type_id
	 * @param duedate
	 * @param account_id
	 * @param status
	 */
	public Issure(Integer issure_id, Integer project_id, String name,
			String description, Integer type_id, Date duedate,
			Integer account_id, Integer status) {
		super();
		this.issure_id = issure_id;
		this.project_id = project_id;
		this.name = name;
		this.description = description;
		this.type_id = type_id;
		this.duedate = duedate;
		this.account_id = account_id;
		this.status = status;
	}


	public Integer getIssure_id() {
		return issure_id;
	}

	public void setIssure_id(Integer issure_id) {
		this.issure_id = issure_id;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Integer getType_id() {
		return type_id;
	}

	public void setType_id(Integer type_id) {
		this.type_id = type_id;
	}

	public Date getDuedate() {
		return duedate;
	}

	public void setDuedate(Date duedate) {
		this.duedate = duedate;
	}

	public Integer getAccount_id() {
		return account_id;
	}

	public void setAccount_id(Integer account_id) {
		this.account_id = account_id;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	/**
	 * @return the project_id
	 */
	public Integer getProject_id() {
		return project_id;
	}

	/**
	 * @param project_id
	 *            the project_id to set
	 */
	public void setProject_id(Integer project_id) {
		this.project_id = project_id;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name
	 *            the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	@Override
	public String toString() {
		return "Issue [issure_id=" + issure_id + ", description=" + description
				+ ", type_id=" + type_id + ", duedate=" + duedate
				+ ", account_id=" + account_id + ", status=" + status + "]";
	}

}
